﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Admin_ProductMaster : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

        if (!IsPostBack)
        {
            BindMasterData();
        }

    }

    protected void BindMasterData()
    {

        ddlSizeUnit.Items.Clear();
        ddlPetalu.Items.Clear();
        ddlStoneUnit.Items.Clear();


        ddlSizeUnit.DataSource = (new Common()).GetLookupData((int)Common.LookUpData.SIZE_LENGTH);
        ddlPetalu.DataSource = (new Common()).GetLookupData((int)Common.LookUpData.PETALU);
        ddlStoneUnit.DataSource = (new Common()).GetLookupData((int)Common.LookUpData.STONES_UNITS);

        ddlSizeUnit.DataTextField = ddlPetalu.DataTextField = ddlStoneUnit.DataTextField = "LookUpName";
        ddlSizeUnit.DataValueField = ddlPetalu.DataValueField = ddlStoneUnit.DataValueField = "LookUpId";

        ddlSizeUnit.DataBind();
        ddlPetalu.DataBind();
        ddlStoneUnit.DataBind();

        
    }

    protected void btnAdd_Click(object sender, EventArgs e)
    {

    }
    protected void btnReset_Click(object sender, EventArgs e)
    {

    }
    protected void btnCancel_Click(object sender, EventArgs e)
    {

    }
}